package com.youchuang.service;

import java.io.InputStream;
import java.util.List;

import com.youchuang.bean.Comment;
import com.youchuang.bean.ReceiveAddress;
import com.youchuang.bean.User;

public interface UserService {

	public void saveReceiveAddress(ReceiveAddress receiveAddress);

	public InputStream getImageCodeStream();

	//TODO:这个方法有有误
	public void deleteAddressActionById(String id);

	public ReceiveAddress findReceiveAddressById(String id);

	public void saveComment(Comment comment);

	public String loginUser(User user);

	public String updatePassword(String olderPassword, String password, String rePassword);

	public void registUser(User user);

	public void updateReceiveAddress(ReceiveAddress receiveAddress);

	public void updateUser(User user);

	public String verifyUser(String code);

	public User findUserByEmail(String email);
	
	public List<ReceiveAddress> findReceiveAddressByUserId(String userId);
	
	

}
